﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class admin_AdminTimeAdd : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ExamTypeGetList();
        }
    }
    // private void bindExamAllNameList()
    // {
    //   DataTable dt = Exam.ExamTime_GetTopList();
    //  if (dt.Rows.Count > 0)
    //  {
    //     if (dt.Columns.Contains("EmTimeValue"))
    //         dt.Columns.Remove("EmTimeValue");
    //     dt.Columns.Add("EmTimeValue");


    //     BSUtility.BindListControl(EmAllName, dt, "EmAllName", "EmID");
    // }
    // }
    private void ExamTypeGetList()
    {
        DataTable dt = Exam.ExamType_GetAllList();
        BSUtility.BindListControl(EmID, dt, "EmTypeName", "EmType");

    }



    protected void addStudent_Click(object sender, EventArgs e)
    {
        Exam.insertExamTime(EmID.Text, DropDownList1.Text, ltFrom.Text, startTime.Text, endTime.Text, EmAllName.Text, txtEnterYear.Text);


    }
    //protected void addStudent_Click(object sender, EventArgs e)
    //{
    //    Exam.insertExamTime("ddlExamList.Text", "DropDownList1.Text", "ltFrom.Text", "startTime.Text", "endTime.Text", "txtEnterYear.Text", "addTips.Text");


    //}
}